﻿using Sissonix.Infrastructure.DomainBase;
using Sissonix.ExtRest.RestSchemaModel.Model;

namespace Sissonix.ExtRest.RestSchemaModel.Model
{
    public partial class Application : IAggregateRoot
    {
        public string GetProcessingClassName(string restRoot)
        {
            restRoot = restRoot.ToLower();
            foreach (Domain d in this.Domains)
            {
                if (d.DomainRoot.ToLower() == restRoot)
                {
                    return d.ProcessingClass;

                }
            }
            return "";
        }
    }
}
